<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
    <script src="../Public/plugins/jsFormat/jsFormat.js"></script>
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>分配库存管理<small></small></h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                    <li class="active">分配库存管理</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">分配库存管理</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal" action="" method="post">
                        <input type="hidden" name="tid" value="{$info.tid}"></input>
                        <div class="box-body">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">门店名称</label>
                                <div class="col-sm-10">
                                    <input type="text" name="" id="inputEventCode" class="form-control" value="{$shop.shopname}" readonly="" autocomplete="off">

                                    <input type="hidden" name="shopid" id="inputEventCode" class="form-control" value="{$shop.tid}" readonly="" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">物品名称</label>
                                <div class="col-sm-10">
                                    <input type="text" name="" id="inputEventCode" class="form-control" value="{$goods.goods_name}" readonly="" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">库存数量</label>
                                <div class="col-sm-10">
                                    <input type="number" name="stock_num" id="inputEventCode" class="form-control" value="{$info.stock_num}" autocomplete="off">
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer col-sm-offset-2">
                            <button type="submit" class="btn btn-primary">
                                保存
                            </button>
                            <a class="btn btn-warning" href="/Shop/stocklist" role="button">返回</a>
                        </div>
                        <br>
                        <!-- /.box-footer -->
                    </form>
                </div>

                <div class="row">
                    <div class="col-xs-12">
                        <ul class="timeline">
                            <notempty name="log">
                                <li class="time-label">
                                    <span class="bg-blue">库存变更记录</span>
                                </li>
                                <volist name="log" id="vo">
                                    
                                    <li>
                                        <i class="fa fa-user bg-aqua"></i>
                                        <div class="timeline-item">
                                            <span class="time"><i class="fa fa-clock-o"></i> {$vo.ctime}</span>
                                            <h3 class="timeline-header">[库存变更]</h3>
                                            <notempty name="vo.order_no">
                                                <div class="timeline-body">变更订单号: {$vo.order_no}</div>
                                            </notempty>
                                            <div class="timeline-body">变更说明: {$vo.action}</div>
                                            <div class="timeline-body">描述: {$vo.content}</div>
                                            <div class="timeline-body">操作人: {$vo.nickname}</div>
                                            <div class="timeline-body hidesql" style="display:none;"></div>
                                            <!-- <div class="timeline-footer">
                                                <a class="btn btn-primary btn-xs" onclick="$(this).parent().parent().children('.hidesql').toggle();">查看SQL</a>
                                            </div> -->
                                        </div>
                                    </li>
                                </volist>
                            </notempty>
                            
                        </ul>
                    </div>
                </div>
            </section>
            
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />
    <script type="text/javascript">
    $("#ShopManager").addClass("active");
    $("#stock_list").addClass("active");
    </script>
</body>

</html>
